package com.wechat.service.order;

import com.alibaba.fastjson.JSONObject;
import com.fhMall.request.SubmitOrderRequest;
import com.fhMall.request.WechatOrderReturnHandleResquest;

/**
 */
public interface WechatOrderService {

    /**
     * 下订单
     * @param submitOrderRequest
     * @param openId
     * @param ipAddr
     * @return
     */
    JSONObject submitOrder(SubmitOrderRequest submitOrderRequest, String openId, String ipAddr);

    /**
     * 再次支付
     * @return
     */
    JSONObject payAgain(Integer orderId,Integer memberId, String openId, String ipAddr);

    /**
     * 退款
     * @param wechatOrderReturnHandleResquest
     * @return
     */
    JSONObject handleRefund(WechatOrderReturnHandleResquest wechatOrderReturnHandleResquest);

    /**
     * 支付成功通知
     * @param paySuccessResult
     * @return
     */
    String paySuccess(String paySuccessResult);

    /**
     * 退款成功通知
     * @param refundSuccessResult
     * @return
     */
    String refundSuccess(String refundSuccessResult);
}
